package com.dingup.api.enums.log;

/**
 * Created by wancheng on 2018/8/28.
 */
public enum  ClassInfoLogEnum {

    ID("id"),

    CLASSNAME("班级名称"),

    CLASSTYPE("班级类型"),

    LESSONID("课程"),

    BEGINTIME("开始时间"),

    ENDTIME("结束时间"),

    STATUS("状态"),

    CREATEUSERID("创建人"),

    IFDELETE("删除");


    public static String getDescription(String name){
        String res = null;
        for (ClassInfoLogEnum e:ClassInfoLogEnum.values()) {
            if (e.name().toLowerCase().equals(name.toLowerCase())){
                res = e.description;
                break;
            }
        }
        return  res;
    }

    private String description;

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    ClassInfoLogEnum(String description) {
        this.description = description;
    }
}
